<?php
$db = require "./Data/Config/db.inc.php"; //数据库设置
$web = require "./Data/Config/config.inc.php"; //网站基本设置
$alipay = require "./Data/Config/alipay.inc.php"; //支付宝设置
$flag = require "./Data/Config/flag.inc.php";	//文档属性设置
$config=array(
	//'配置项'=>'配置值'
	/*******独立分组配置**************/
	'APP_GROUP_LIST'=>'Home,Admin,Member',
	'DEFAULT_GROUP'=>'Home',
	'APP_GROUP_MODE'=>1,//开启独立分组
	'APP_GROUP_PATH'=>'Modules',
	//'SHOW_PAGE_TRACE'=>true,

	// 地址栏忽略大小写
	'URL_CASE_INSENSITIVE' =>true,

	

	//默认错误跳转对应的模板文件
	'TMPL_ACTION_ERROR' => LIB_PATH . 'Tpl/error.html',
	//默认成功跳转对应的模板文件
	'TMPL_ACTION_SUCCESS' => LIB_PATH . 'Tpl/success.html',

	// 标签库
	'TAGLIB_BUILD_IN'=>'Cx,Hd',

	/********************************验证码********************************/
    'CODE_FONT'                     => 'Data/Font/font.ttf',       //字体
    'CODE_STR'                      => '0123456789', //验证码种子
    'CODE_WIDTH'                    => 80,         //宽度
    'CODE_HEIGHT'                   => 25,          //高度
    'CODE_BG_COLOR'                 => '#ffffff',   //背景颜色
    'CODE_LEN'                      => 4,           //文字数量
    'CODE_FONT_SIZE'                => 16,          //字体大小
    'CODE_FONT_COLOR'               => '',   //字体颜色


    /******************************路由规则**********************************/
    'URL_ROUTER_ON'=>true,
	'URL_ROUTE_RULES'=>array(


		'/^products\/l_(\d+)$/'=>'Home/Products/lists?cid=:1',
		'/^products\/v_(\d+)_(\d+)$/'=>'Home/Products/view?cid=:1&aid=:2',
		'/^products\/v_(\d+)$/'=>'Home/Products/view?cid=:1',


		'/^news\/l_(\d+)$/'=>'Home/News/lists?cid=:1',
		'/^news\/v_(\d+)_(\d+)$/'=>'Home/News/view?cid=:1&aid=:2',
		'/^news\/v_(\d+)$/'=>'Home/News/view?cid=:1',

		

		'/^about\/l_(\d+)$/'=>'Home/About/lists?cid=:1',
		'/^about\/v_(\d+)_(\d+)$/'=>'Home/About/view?cid=:1&aid=:2',
		'/^about\/v_(\d+)$/'=>'Home/About/view?cid=:1',


		'/^recruitment\/l_(\d+)$/'=>'Home/Recruitment/lists?cid=:1',
		'/^recruitment\/v_(\d+)_(\d+)$/'=>'Home/Recruitment/view?cid=:1&aid=:2',
		'/^recruitment\/v_(\d+)$/'=>'Home/Recruitment/view?cid=:1',

		'/^contact\/l_(\d+)$/'=>'Home/Contact/lists?cid=:1',
		'/^contact\/v_(\d+)_(\d+)$/'=>'Home/Contact/view?cid=:1&aid=:2',
		'/^contact\/v_(\d+)$/'=>'Home/Contact/view?cid=:1',

		'/^download\/l_(\d+)$/'=>'Home/Download/lists?cid=:1',
		'/^download\/v_(\d+)_(\d+)$/'=>'Home/Download/view?cid=:1&aid=:2',
		'/^download\/v_(\d+)$/'=>'Home/Download/view?cid=:1',


		// ':id\d'=>'Index/Show/index'
	),

	'URL_MODEL'=>1,


	'VAR_SESSION_ID' => 'SSID',


	 // 语言包
	'LANG_SWITCH_ON' => true,   // 开启语言包功能
	'LANG_LIST'      => 'zh-cn,en-us', // 允许切换的语言列表 用逗号分隔
	'DEFAULT_LANG' 	 => 'zh-cn', // 默认语言



	'TMPL_STRIP_SPACE'      => 	false,       // 是否去除模板文件里面的html空格与换行
);
// 合并所有设置
return array_merge($db,$web,$alipay,$flag,$config);
?>